<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<p>文本的内容</p>
<button onclick="AppendText()">追加</button>
<script>
    function AppendText() {
        var text1 = "<p>文本1</p>";
        var text2 = $('<p></p>').text('文本2');
        var text3 = document.createElement('p');
        text3.innerText="文本3";
        $('body').append(text1,text2,text3);
    }
</script>
</body>
</html>